﻿using FinalYear.Helpers;
using FinalYear.iNavigate.Properties;
using System.Media;

namespace FinalYear.iNavigate.Classes
{
    public class CollisionWarning
    {
        private SoundPlayer player;

        public CollisionWarning()
        {
            this.player = new SoundPlayer();
        }

        public void PlayWarning(SCREENREGION region)
        {
            player.Stream = (region == SCREENREGION.LEFT) ? Resources.obstacleLeft : Resources.obstacleRight;
            player.Play();
        }
    }
}